'use strict';

const Controller = require('egg').Controller;

class DishController extends Controller {
  async getDish() {
    const rid = this.ctx.request.query.rid;
    const page = this.ctx.request.query.page;
    const size = this.ctx.request.query.size;
    const result = await this.ctx.service.dish.getDish(rid,page,size);
    this.ctx.body = result;
  }
}

module.exports = DishController;
